import request from '@/utils/request'

// 查询公寓设施或服务列表
export function listTbfacility(query) {
  return request({
    url: '/apartment/tbfacility/list',
    method: 'get',
    params: query
  })
}

// 查询公寓设施或服务详细
export function getTbfacility(id) {
  return request({
    url: '/apartment/tbfacility/' + id,
    method: 'get'
  })
}

// 新增公寓设施或服务
export function addTbfacility(data) {
  return request({
    url: '/apartment/tbfacility',
    method: 'post',
    data: data
  })
}

// 修改公寓设施或服务
export function updateTbfacility(data) {
  return request({
    url: '/apartment/tbfacility',
    method: 'put',
    data: data
  })
}

// 删除公寓设施或服务
export function delTbfacility(id) {
  return request({
    url: '/apartment/tbfacility/' + id,
    method: 'delete'
  })
}
